<%// Copyright 2008 Carnegie Mellon University
// Licensed under the Apache License, Version 2.0 (the "License"); 
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//  
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, 
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.%>

<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ page import="java.sql.*"%>
<%@ page import="edu.cmu.lti.sepia.data.db.SQL"%>
<%@ page import="edu.cmu.lti.sepia.data.db.TaskDAO"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.List"%>
<%@ page import="edu.cmu.lti.sepia.infra.topic.model.Task"%>
<%@ page import="edu.cmu.lti.sepia.api.html.ProgressGenerator"%>
<%@ page import="edu.cmu.lti.sepia.servlet.Commons"%>

<%
out.println( Commons.getHeader(request, response, "Progress Browser", 1) );

//request.getParameter("admin")!=null && 
boolean isAdmin = (Boolean)session.getAttribute("isAdmin");
String adminParam = isAdmin?"&admin=yes":"";

%>

<table border="0" cellspacing="0" cellpadding="3" width="500" class="datatable">
   <thead>
    <tr>
      <th style="border-bottom:1px solid #000;text-align:center"><b>Category</b></th>
      <th style="border-bottom:1px solid #000;text-align:center"><b>Link</b></th>
    </tr>
   </thead>
   <tbody>
    <tr style="height:30px" class="odd">
      <td nowrap><b>Progress Browser for Topic Development</b></td>
      <td><a href="progress_browser_td.jsp?type=q<%=adminParam %>">Go</a></td>
    </tr>
    <!-- 
    <tr style="height:30px" class="even">
      <td nowrap><b>Progress Browser for Submission</b></td>
      <td><a href="progress_browser_submission.jsp?type=q<%=adminParam %>">Go</a></td>
    </tr>
     -->
    <tr style="height:30px" class="even">
      <td nowrap><b>Progress Browser for IR Judgment</b></td>
      <td><a href="progress_browser_ir_eval.jsp?type=q<%=adminParam %>">Go</a></td>
    </tr>
    <tr style="height:30px" class="odd">
      <td nowrap><b>Progress Browser for QA Judgment</b></td>
      <td><a href="progress_browser_qa_eval.jsp?type=q<%=adminParam %>">Go</a></td>
    </tr>
   </tbody>
  </table>
  <br><br>
<br><br>

<%
out.println( Commons.getFooter(request, response) );
%>